//
// Created by lingzhitech on 25-9-23.
//

#include <iostream>
#include <numeric>
#include <vector>

int main() {
    std::vector<int> vec = {1, 2, 3, 4, 5};
    int sum = std::accumulate(vec.cbegin(), vec.cend(), 0);
    std::cout << "The sum " << sum << std::endl;
}
